package com.lb.shopguide.entity.goods;

import java.io.Serializable;

/**
 * Created by kang on 2017/6/13.
 * 解析聊天的数据
 */

public class GoodsInChatBean implements Serializable {
    /**
     * "distributeMode": "仅自提",
     * "productCode": "f931d6e626a74ee6b52641879ab7f362",
     * "typeName": "美妆日化",
     * "id": 1,
     * "productPicUrl": "http://static.storeer.com/wlwb/product/a4552a97-ac73-4033-9ae1-e12b8e891b35_580x580.jpeg",
     * "productName": "哆啦A梦儿童滋养洗发沐浴露(2合1) 500ml",
     * "typeCode": "003"
     */
    private String productCode;
    private int id;
    private String productPicUrl;
    private String productName;
    //本地维护
    private String storeCode;
    private String sum;
    private String discount;
    private String price;

    public GoodsInChatBean() {

    }

    public GoodsInChatBean getChatBean(GoodsInListBean bean) {
        GoodsInChatBean chatBean = new GoodsInChatBean();
        chatBean.setDiscount(bean.getDiscount());
        chatBean.setId(bean.getId());
        chatBean.setStoreCode(bean.getStoreCode());
        chatBean.setPrice(bean.getPrice());
        chatBean.setProductCode(bean.getProductCode());
        chatBean.setProductName(bean.getProductName());
        chatBean.setProductPicUrl(bean.getProductPicUrl());
        chatBean.setSum(bean.getSum());
        return chatBean;
    }


    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProductPicUrl() {
        return productPicUrl;
    }

    public void setProductPicUrl(String productPicUrl) {
        this.productPicUrl = productPicUrl;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }


    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }
}
